BISON
Section: User Commands (1)
Updated: local
Index
Return to Main Contents
NAME
bison - GNU Project parser generator (yacc replacement)
SYNOPSIS
bison
[
-dvy
] file
DESCRIPTION
Bison
is a parser generator in the style of
yacc(1).
It should be upwardly compatible with input files designed
for
yacc.
Input files should follow the
yacc
convention of ending in ``.y''.
Unlike
yacc,
the generated files do not have fixed names, but instead use the prefix
of the input file.
For instance, a grammar description file named
parse.y
would produce the generated parser in a file named
parse.tab.c,
instead of
yacc's
y.tab.c.
Bison
takes three optional flags.
- -d
-
Produce a
.tab.h
file, similar to
yacc's
y.tab.h
file.
- -v
-
Be verbose. Analogous to the same flag for
yacc.
- -y
-
Use fixed output file names. I.e., force the output to be in files
y.tab.c,
y.tab.h,
and so on. This is for full
yacc
compatibility.
FILES
/usr/local/lib/bison.simple simple parser
/usr/local/lib/bison.hairy complicated parser
SEE ALSO
yacc(1)
DIAGNOSTICS
``Self explanatory.''
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- FILES
-
- SEE ALSO
-
- DIAGNOSTICS
-
This document was created by
man2html,
using the manual pages.
Time: 03:58:43 GMT, September 10, 2022